#!/usr/bin/python
# -*- coding:utf-8 -*- #
########################
#list = list(range(5))
#print(list)
#names = ['Michael', 'Bob', 'Tracy']
#for name in names:
#	print(name)

########## for 求和 #############
#sum = 0
#list = list(range(101))
#for x in list:
#	sum = sum + x
#print(sum)

########## while ################
#sum = 0
#n = 99
#while n > 0:
#	sum = sum + n
#	n = n - 2
#print(sum)

########### while ##############
#n = 0
#while n < 100:
#	n = n + 1
#	if n % 2 == 0:
#		continue
#	print(n)
#print('END')
########## dict ################
#d={'a': 95, 'b': 75, 'c': 85}
#print(d['a'])
#d['d'] = 76
#print(d['d'])
# 键值不存在报错
# print(d['e'])
# 判断key是否在
# print('e' in d)
#print(d.get('b'))
#print(d.get('e', -1))
#print(d)
#d.pop('a')
#print(d)
########### set ###############
#s = set([1,2,2,3,4,5,6,7])
#print(s)
#s.add(8)
#print(s)
#s.remove(1)
#print(s)
########### 交集并集 ##########
#s1 = set([1,2,3])
#s2 = set([2,3,4])
#print(s1 & s2)
#print(s1 | s2)
########### sort #############
#s = ['c', 'b', 'a']
#s.sort()
#print(s)
#a = 'abc'
#b = a.replace('a', 'A')
#print(b)
#print(a)
